package com.liu.backstage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 腾杰说
 * @since 2020-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Comment对象", description="")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "父类id")
    private Long parentId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "父类类型")
    private Integer type;

    @ApiModelProperty(value = "登录id")
    private Long commentator;

    @ApiModelProperty(value = "创建时间")
    private Long gmtcreate;

    @ApiModelProperty(value = "更新时间")
    private Long gmtmodified;

    private Long likeCount;

    @ApiModelProperty(value = "回复数")
    @TableField("commentCount")
    private Integer commentCount;


}
